package com.bjc.principle.flyweight;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2021-01-04 16:40
 */
public abstract class BikeFlyWeight {

    //内部状态
    protected Integer state = 0; //0是未使用，1是使用中

    //userName外部状态
    abstract void ride(String userName);

    abstract void back();

    public Integer getState(){
        return state;
    }

}
